<template>
  <view class="wrap"> 消息 </view>
</template>

<script setup lang="ts">
import { reactive, ref } from 'vue'
import { educationInfo } from '@/api/hmm'
import { onLoad, onUnload, onShow } from '@dcloudio/uni-app'
const state = reactive({})
const list = ref([])
const userInfo = ref({})
onLoad(() => {
  userInfo.value = uni.getStorageSync('userInfo')
    ? JSON.parse(uni.getStorageSync('userInfo')).patientInfo
    : {}
  init()
})
onShow(() => {
  //   init();
})

onUnload(() => {
  //   clearInterval(state.timeQuestions);
  //   state.timeQuestions = null;
})
const init = () => {
  uni.showLoading({
    title: '加载中'
  })
  let param = {
    name: 123
  }
  educationInfo(param).then((res) => {
    uni.hideLoading()
    if (res.code == 0) {
      console.log(res.data)
    }
  })
}
</script>

<style lang="scss" scoped>
.wrap {
  min-height: 100vh;
}
</style>
